home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
xlib03.zip
/
XPAL.H
< prev
next >
Wrap
Text File
|
1993-04-05
|
3KB
|
82 lines
/*-----------------------------------------------------------------------
;
; XPAL - header file
;
;
;
; ****** XLIB - Mode X graphics library ****************
; ****** ****************
; ****** Written By Themie Gouthas ****************
; ****** Aeronautical Research Laboratory ****************
; ****** Defence Science and Technology Organisation ****************
; ****** Australia ****************
;
; egg@dstos3.dsto.gov.au
; teg@bart.dsto.gov.au
;
; Terminology & notes:
; VRAM == Video RAM
; SRAM == System RAM
; X coordinates are in pixels unless explicitly stated
;
;----------------------------------------------------------------------*/
#ifndef _XPAL_H_
#define _XPAL_H_
#define PAL_ROTATE_DOWN 0
#define PAL_ROTATE_UP 1
/* FUNCTIONS =========================================================== */
extern void x_get_pal_raw( /* Read DAC palette into raw buffer */
BYTE far * pal,
WORD num_colrs,
WORD start_index);
extern void x_get_pal_struc( /* Read DAC palette into annotated buffer */
BYTE far * pal,
WORD num_colrs,
WORD start_index);
extern void x_put_pal_raw( /* Write DAC palette from raw buffer */
BYTE far * pal,
WORD num_colrs,
WORD start_index);
extern void x_put_pal_struc( /* Write DAC palette from annotated buffer*/
BYTE far * pal);
extern x_set_rgb( /* Set the RGB components of a color index*/
BYTE color,
BYTE red_c,
BYTE green_c,
BYTE blue_c);
extern x_rot_pal_raw( /* Rotate a raw palette buffer */
BYTE far * pal,
WORD direction,
WORD num_colrs);
extern void x_rot_pal_struc( /* Rotate an anottated palette buffer */
BYTE far * pal,
WORD direction);
extern WORD x_cpcontrast_pal_struc( /* Copy and contrast adjust annotated */
BYTE far *src_pal, /* palette buffer */
BYTE far *dest_pal,
BYTE Intensity);
extern void x_transpose_pal_struc( /* Write DAC palette from annotated type*/
BYTE far * pal, /* buffer with a new offset */
WORD StartColor);
extern void x_put_contrast_pal_struc( /* Write DAC palette from annotated */
BYTE far * pal, /* type buffer with specified intensity */
BYTE intensity);
#endif